<include file="public:header" />
<!--公告-->
<div class="pad_lr_10">

  <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="notice" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
                     {:L('publish_time')}：
                    <input type="text" name="time_start" id="time_start" class="date" size="12" value="{$search.time_start}">
                    -
                    <input type="text" name="time_end" id="time_end" class="date" size="12" value="{$search.time_end}">
                    
                    &nbsp;&nbsp;{:L('status')}:
                    <select name="status">
                    <option value="">-{:L('all')}-</option>
                    <option value="1" <if condition="$search.status eq '1'">selected="selected"</if>>有效</option>
                    <option value="0" <if condition="$search.status eq '0'">selected="selected"</if>>无效</option>
                    </select>                      
                                       
					&nbsp;&nbsp;{:L('notice_region')} :                                        
					<select name="region">
                        <option value="0">{:L('please_select')}</option>
                        <volist name="regionList" id="item">
                            <option <if condition="$search['region'] eq $key">selected="true"</if> value="{$key}">{$item}</option>
                        </volist>
                    </select>                                        
					&nbsp;&nbsp;{:L('notice_title')} :                    
					<input type="text" name="title" class="input-text" size="22" value="{$search.name}" />
                    <input type="submit" name="search" class="btn" value="搜索" />
					
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>


    <div class="J_tablelist table_list" data-acturi="{:U('notice/ajax_edit')}">
        <table width="100%" cellspacing="0">
            <thead>
            <tr>
                <th width="40"><input type="checkbox" name="checkall" class="J_checkall"></th>
                <th width="40">ID</th>
                <th width="180">{:L('notice_title')}</th>  
                <th>{:L('notice_region')}</th>  
                <th>{:L('publish_time')}</th>    
                <!--<th>{:L('store_channel')}</th>-->      
                <th width="80">{:L('article_copyfrom')}</th>   
                <th>{:L('notice_att')}</th>  
                <th>{:L('status')}</th>                    
                <th width=100>{:L('operations_manage')}</th>
            </tr>
            </thead>
    	    <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center" width="20">{$val.id}</td>
                <td align="center" width="20"><span data-tdtype="edit" data-field="title" data-id="{$val.id}" class="tdedit" style="color:{$val.colors};">{$val.title}</span></td>
                <td align="center">{:implodeString($val['regionId'],$regionList)}</td>
                <td align="center">{$val['publishTime']?date('Y-m-d H:i:s',$val['publishTime']):date('Y-m-d H:i:s',$val['editTime'])}</td>
                <!--<td align="center">{:L('store_channel'.$val['channel'])}</td>-->
                <td align="center" width="20">{$val.copyFrom}</td>
                <td align="center"><a href="{:attUrl($val['att'],'notice')}">{:attName($val['att'])}</a></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__STATIC__/images/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
                <td align="center">
                    <a href="{:U('notice/edit', array('id'=>$val['id']))}">{:L('edit')}</a> | 
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:U('notice/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),$val['title'])}">{:L('delete')}</a>
                </td>
            </tr>
            </volist>
    	   </tbody>
        </table>
    </div>
    <div class="btn_wrap_fixed">
		<label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('notice/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
		<div id="pages">{$page}</div>
    </div>
</div>
<include file="public:footer" />
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script src="__STATIC__/js/calendar/calendar.js"></script>
<script>
Calendar.setup({
    inputField : "time_start",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
Calendar.setup({
    inputField : "time_end",
    ifFormat   : "%Y-%m-%d",
    showsTime  : false,
    timeFormat : "24"
});
</script>
</body>
</html>